# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         hw03
# Description:
# Author:       98745
# Date:         2019/3/2
#-------------------------------------------------------------------------------

d={}
def sushu(n):
    ss=[]
    if n==100:
        z=1
    elif n==1000:
        z=100
    else:
        z=1000
    leap = 1
    for i in range(z, n):
        k = (int(i / 2) + 1)
        for j in range(2, k):
            if (i % j == 0):
                leap = 0
                break
        if leap:
            ss.append(i)
        leap = 1
    return ss
d['1~99']=sushu(100)
d['100~999']=sushu(1000)
d['1000~1999']=sushu(2000)
print(d)
# for k in data.keys():
#     print(k+':',end='')
#     print(data[k])